package br.com.locautowebbd.locatario;

import javax.persistence.Column;
import javax.persistence.DiscriminatorColumn;
import javax.persistence.DiscriminatorType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;

/**
 * 
 * @author Alexsandro
 *
 */

@javax.persistence.Entity
@Table(name="leitor")
@Inheritance(strategy=InheritanceType.SINGLE_TABLE)
@DiscriminatorColumn(name="tipo", discriminatorType=DiscriminatorType.INTEGER)
public class Locatario {
	@Id
	@Column(name="codigo")
	int codigo;
	@Column(name="login")
	String login;
	@Column(name="senha")
	String senha;
	@Column(name="email")
	String email;
	
	public Locatario(){}
	
	
	public Locatario(int codigo, String login, String senha, String email) {
		this.codigo = codigo;
		this.login = login;
		this.senha = senha;
		this.email = email;
	}
	
	public int getCodigo() {
		return codigo;
	}

	public void setCodigo(int codigo) {
		this.codigo = codigo;
	}

	public String getLogin() {
		return login;
	}

	public void setLogin(String login) {
		this.login = login;
	}

	public String getSenha() {
		return senha;
	}

	public void setSenha(String senha) {
		this.senha = senha;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}


}
